<template>
	<view>
		{{mag}}
		<button type="primary" @click="sendMsg">+1</button>
	</view>
</template>

<script>
	export default {
		name:"comptest",
		data() {
			return {
				num:1,
			};
		},
		props: ['mag'],
		methods: {
			sendMsg() {
				this.$emit("myEven",this.num)
			}
		}
	}
</script>

<style lang="scss">

</style>